import request from "@/api/interceptor";

export default {
    // 查询收费项目信息
    queryChargeInfo(params: Record<string, any>) {
        return request.get(params, {
            apiName: "查询收费项目",
            url: "/edu-pay/item_detail",
            loading: true
        });
    },

    // 提交支付订单
    submitPayOrder(data: Record<string, any>) {
        return request.post(data, {
            apiName: "提交支付订单",
            url: "/edu-pay/pay",
            loading: true
        });
    },
    queryLevelList(params: Record<string, any>) {
        return request.get(params, {
            apiName: "组织架构列表",
            url: "/edu-pay/level_list",
            loading: true
        });
    },
    querySchoolList(params: Record<string, any>) {
        return request.get(params, {
            apiName: "学校列表",
            url: "/edu-pay/school_list",
            loading: true
        });
    },
    queryStudentByPhoneNumber(params: Record<string, any>) {
        return request.get(params, {
            apiName: "获取学生信息",
            url: "/edu-pay/studentByPhoneNumber",
            loading: true
        });
    }
};
